#include "functors/UniformFunctor.hpp"

UniformFunctor::UniformFunctor() {
}

UniformFunctor::UniformFunctor(double _val) {
	val=_val;
}

UniformFunctor::UniformFunctor(const UniformFunctor &func) {
	val=func.val;
}

UniformFunctor::~UniformFunctor() {
}

double UniformFunctor::operator() (double x) {
	return val;
}

double UniformFunctor::integrate(double a, double b) {
	return (b-a)*val;
}

